package com.csthink.web.application.dto.test;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-12
 */
@Setter
@Getter
public class PassportLoginRequest {

    @NotBlank
    @Length(max = 100)
//    @Pattern(regexp = AuthConstants.NAME_COMMON_REGEX, message = AuthConstants.NAME_COMMON_REGEX_PROMPT)
    private String username;

    @NotBlank
    @Length(max = 100)
    private String password;
}
